home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / indent-1.8 / Orig / sys.h < prev   
Text File  |  1993-12-16  |  1KB  |  68 lines

  1. /* Copyright (C) 1992 Free Software Foundation, Inc.
  2.  
  3.    This program is free software; you can redistribute it and/or modify
  4.    it without restriction.
  5.  
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  */
  9.  
  10. #include <stdio.h>
  11.  
  12. /* Values of special characters. */
  13. #define TAB '\t'
  14. #define EOL '\n'
  15. #define BACKSLASH '\\'
  16.  
  17. #ifdef DEBUG
  18. extern int debug;
  19. #endif
  20.  
  21. #ifdef __GNUC__
  22. #define INLINE __inline__
  23. #else
  24. #define INLINE
  25. #endif
  26.  
  27. #ifdef VMS
  28. # define ONE_DOT_PER_FILENAME 1
  29. # define NODIR 1
  30. # define PROFILE_FORMAT "%s%s"
  31. # define BACKUP_SUFFIX_STR    "_"
  32. # define BACKUP_SUFFIX_CHAR   '_'
  33. # define BACKUP_SUFFIX_FORMAT "%s._%d_"
  34. # define SYS_READ vms_read    /* Defined in io.c */
  35. # ifdef VAXC
  36. #  include <unixio.h>
  37. # endif
  38. #endif /* VMS */
  39.  
  40. #ifdef __MSDOS__
  41. #define ONE_DOT_PER_FILENAME 1
  42. #define USG   1
  43. #define NODIR 1
  44. #endif /* __MSDOS__ */
  45.  
  46. /* configure defines USG if it can't find bcopy */
  47.  
  48. #ifndef USG
  49. #define memcpy(dest,src,len) bcopy((src),(dest),len)
  50. #endif
  51.  
  52. struct file_buffer
  53. {
  54.   char *name;
  55.   unsigned long size;
  56.   char *data;
  57. };
  58.  
  59. extern struct file_buffer *read_file (), *read_stdin ();
  60.  
  61. /* Standard memory allocation routines.  */
  62. char *malloc ();
  63. char *realloc ();
  64.  
  65. /* Similar, but abort with an error if out of memory (see globs.c).  */
  66. char *xmalloc ();
  67. char *xrealloc ();
  68.